package com.intermancer.predictor.lifecycle;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.chain.impl.ContextBase;

import com.intermancer.predictor.organism.Organism;
import com.intermancer.predictor.store.StoreEntry;

@SuppressWarnings("serial")
public class LifecycleContext extends ContextBase {
	
	private List<Organism> parents;
	private List<Organism> children;
	private List<StoreEntry> storeEntries;
	private List<StoreEntry> storedEntries;
	
	public LifecycleContext() {
		storedEntries = new ArrayList<StoreEntry>(2);
	}

	public List<Organism> getParents() {
		return parents;
	}

	public void setParents(List<Organism> parents) {
		this.parents = parents;
	}

	public List<Organism> getChildren() {
		return children;
	}

	public void setChildren(List<Organism> children) {
		this.children = children;
	}

	public List<StoreEntry> getStoreEntries() {
		return storeEntries;
	}

	public void setStoreEntries(List<StoreEntry> storeEntries) {
		this.storeEntries = storeEntries;
	}

	public void addStoredEntry(StoreEntry storedEntry) {
		storedEntries.add(storedEntry);
	}

	public List<StoreEntry> getStoredEntries() {
		return storedEntries;
	}

}
